package com.example.test.contract;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by lsl on 2021/3/5.
 */
@Data
@ApiModel("创建课程成绩参数")
public class CreateCourseParam {
    @ApiModelProperty("用户")
    @NotBlank(message = "用户不能为空")
    private String userName;

    @ApiModelProperty("课程名称")
    @NotBlank(message = "课程不能为空")
    private String courseName;

    @ApiModelProperty("分数")
    @NotNull(message = "分数不能为空")
    private Integer score;

    @ApiModelProperty("考试日期")
    private Date examDate;
}
